import Api from './api'

class GoodsApi extends Api {
  getAll (factoryId, config) {
    return this.request({
      url: `${this.servicePath}/${this.modulePath}/all/${factoryId}`,
      method: 'get',
      ...config
    })
  }
}

export default new GoodsApi('platform/goodsCategory')
